


@extends('admin._layouts.default')

@section('main')


      <div class="row-fluid ">
        <div class="span12 box gradient ">
      <div class="title">
            <div class="row-fluid">
                <h3><a href="{{ route('admin.pages.create') }}"  class="btn btn-info btn-mini pull-right" style="margin:5px 5px 0 0"><i class="fa fa-plus"></i> 新增</a>
                  <i class="fa  fa-share-alt"></i> 分享文章管理
                </h3>
            </div>
        </div><!-- End .title -->
        <div class="content min_h300">

            <table id="datatable_in" class="responsive table table-striped" style="width:100%;margin-bottom:0; ">
              <thead>
               <tr>
                 <th width="80">
                   缩略图
                  </th>
                  <th width="160">
                    标题
                  </th>
                  <th>
                    摘要
                  </th>
                  <th width="120">
                   奖励积分/点击
                  </th>
                 <th width="160">
                   点击量
                 </th>
                 <th width="160">
                   操作
                 </th>
               </tr>
              </thead>
              <tbody>
            @foreach ($pages as $page)
               <tr>
                  <td>
                   <img class="thumbnail small" src="{{ $PATH.$page->cover }}-thumb">
                  </td>
                 <td>
                    {{ $page->title }}
                  </td>
                  <td>
                    <i class="fa fa-quote-left"></i> {{ $page->dec }}
                 </td>
                 <td>
                    <i class="fa fa-credit-card"></i> {{ $page->point }}<br/>
                 </td>
                 <td>
                    <i class="fa fa-hand-o-up"></i> <strong>{{ $page->pv }}</strong>
                 </td>
                 <td>
                  {{ Form::open(array('route' => array('admin.pages.destroy', $page->id), 'method' => 'delete', 'data-confirm' => 'Are you sure?')) }}
                    <div class="btn-group1">
                      <a href="{{ URL::route('admin.pages.edit', $page->id) }}" class="btn btn-small" rel="tooltip" data-placement="left" data-original-title="编辑文章"><i class="gicon-edit"></i></a>
                      <a class="btn btn-small" rel="tooltip" data-placement="left" data-original-title="暂停奖励"><i class="gicon-pause"></i></a>




                              <span><button type="submit" href="{{ URL::route('admin.pages.destroy', $page->id) }}" class="btn btn-inverse btn-small"><i class="gicon-remove icon-white"></i></button></span>
                   </div>
                   {{ Form::close() }}

                 </td>
               </tr>
            @endforeach
               </tbody>
            </table>
                <div class="row-fluid control-group">

                    <div class="pagination pull-right ">
                      <?php echo $pages->links(); ?>
                    </div>
                </div>
                <br/>


            </div>
        </div>
        <!-- End box -->
      </div>

@stop

@section('script')
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/jquery.peity.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/jquery.uniform.min.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/chosen/chosen/chosen.jquery.min.js') }}"></script>

<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/plugins/flot/jquery.flot.js') }}"></script>



<script src="{{ URL::asset('web/js/scripts.js') }}"></script>
<script language="javascript" type="text/javascript" src="{{ URL::asset('web/js/jnavigate.jquery.min.js') }}"></script>
@stop
